<?php
/**
 *  View helper functions.
 */
class ViewHelper {

	public static function isOlderInternetExplorer()
	{
		$ua = $_SERVER['HTTP_USER_AGENT'];
		if (strpos($ua,'MSIE') != false && strpos($ua,'Opera') === false)
		{
			if (strpos($ua,'Windows NT 5.2') != false)
			{
				if(strpos($ua,'.NET CLR') === false) return FALSE;
			}
			if (substr($ua,strpos($ua,'MSIE')+5,1) < 7)
			{
				/* the browser claims to be IE6 or older, and is not Opera, Safari or iCab */
				return TRUE;
			}
		}
		return FALSE;
	}

}
?>